﻿using System;
using System.Collections.Generic;
using System.Text;
using ArkEC.SEMs.DataAccess.MLM;
using ArkEC.SEMs.DataAccess.MLM.Implement.Access;
using ArkEC.CoreCom.Runtime;

namespace ArkEC.SEMs.DataAccess.MLM
{
    /// <summary>
    /// 多语言数据工厂类
    /// </summary>
    public class MLMDAFactory
    {
        /// <summary>
        /// 创建语言种类数据库操作接口
        /// </summary>
        /// <returns></returns>
        public static ILanTypeDA CreateLanTypeDA()
        {
            ILanTypeDA iface = null;
            string connType = RunSetting.ConnType;

            switch (connType)
            {
                case "OleDb":
                    iface = new LanTypeDA_Acs();
                    break;
                default:
                    break;
            }

            return iface;
        }

        /// <summary>
        /// 创建语言资源的数据库操作接口
        /// </summary>
        /// <returns></returns>
        public static ILanResourceDA CreateLanResDA()
        {
            ILanResourceDA iface = null;
            string connType = RunSetting.ConnType;

            switch (connType)
            {
                case "OleDb":
                    iface = new LanResourceDA_Acs();
                    break;
                default:
                    break;
            }

            return iface;
        }
    }
}
